package homework;

import java.util.Arrays;
import java.util.Random;

public class homework3 {
    public static void main(String[] args){
        int[] arr={2,3,1,4,5};
        System.out.println(Arrays.toString(notsortArr(arr)));
    }
    public static int[] notsortArr(int[] arr){
        Random random=new Random();
        for(int i=0;i<arr.length;i++){
            int j = random.nextInt(arr.length-1);
            int temp = arr[i];
            arr[i] = arr[j];
            arr[j] = temp;
        }
        return arr;
    }
}
